package laboratoryQ.flatness;

import java.awt.Graphics;

public class RevertYTransformer implements ICoordinateTransformer {
	@Override
	public void transform(
			double[] srcX, 
			double[] srcY, 
			Graphics g
	) {
		double height = g.getClipBounds().height;
		int n = srcY.length;
		for (int i = 0; i < n; i++) {
			srcY[i] = height - srcY[i];
		}
	}
}
